﻿using ClassLibrary2;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;


namespace Encryption
{
    public partial class FrmMain : Form
    {
        public FrmMain()
        {
            InitializeComponent();
        }

        private void FrmMain_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            MyEncode code =new MyEncode();
            code.PlainText=this.textBox1.Text;
            code.KeyText = this.textBox2.Text;
            code.Encode();
            this.label4.Text = code.CypherText;

        }

        private void label4_Click(object sender, EventArgs e)
        {

        }
    }
}
